e06ff228065574d1facd8a1b892afaa2ab144b1b,src/org/jgroups/stack/GossipRouter.java,GossipRouter,cleanup,#,493

Before Change


    private void cleanup() {

        // shutdown the routing threads and cleanup the tables
        synchronized(routingTable) {
            Map map;
            for(Iterator i=routingTable.values().iterator(); i.hasNext();) {
                map=(Map)i.next();
                if(map != null) {
                    for(Iterator j=map.values().iterator(); j.hasNext();) {
                        AddressEntry e=(AddressEntry)j.next();

After Change


     */
    private void cleanup() {
        // shutdown the routing threads and cleanup the tables
        for(Map<Address,AddressEntry> map: routingTable.values()) {
            if(map != null) {
                for(AddressEntry entry: map.values()) {
                    entry.destroy();
                }
            }